/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.pro.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 楼栋管理Entity
 * @author dby
 * @version 2020-10-15
 */
public class BasBuilding extends DataEntity<BasBuilding> {
	
	private static final long serialVersionUID = 1L;
	private String buildingName;		// 楼栋名称
	private String buildingNumber;		// 楼栋编号
	private String buildingManager;		// 楼栋经理
	private String moveIntoFlag;		// 是否入住
	private Date constructionDate;		// 建筑日期
	
	public BasBuilding() {
		super();
	}

	public BasBuilding(String id){
		super(id);
	}

	@Length(min=0, max=10, message="楼栋名称长度必须介于 0 和 10 之间")
	public String getBuildingName() {
		return buildingName;
	}

	public void setBuildingName(String buildingName) {
		this.buildingName = buildingName;
	}
	
	@Length(min=0, max=10, message="楼栋编号长度必须介于 0 和 10 之间")
	public String getBuildingNumber() {
		return buildingNumber;
	}

	public void setBuildingNumber(String buildingNumber) {
		this.buildingNumber = buildingNumber;
	}
	
	@Length(min=0, max=10, message="楼栋经理长度必须介于 0 和 10 之间")
	public String getBuildingManager() {
		return buildingManager;
	}

	public void setBuildingManager(String buildingManager) {
		this.buildingManager = buildingManager;
	}
	
	@Length(min=0, max=1, message="是否入住长度必须介于 0 和 1 之间")
	public String getMoveIntoFlag() {
		return moveIntoFlag;
	}

	public void setMoveIntoFlag(String moveIntoFlag) {
		this.moveIntoFlag = moveIntoFlag;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getConstructionDate() {
		return constructionDate;
	}

	public void setConstructionDate(Date constructionDate) {
		this.constructionDate = constructionDate;
	}
	
}